package com.gohi.main.store.hbm;

/**
 * <B>美容师表</B>
 * @author 肖得明<br>
 * 2015年4月16日14时18分44秒
 */public class ShopgooBeautician extends com.gohi.core.model.BaseModel{
    //
    private Integer beautician_id ;
    //级别
    private String beautician_level ;
    //技师名字
    private String beautician_name ;
    //技师介绍
    private String beautician_help ;
    //商铺ID
    private Integer store_id ;
    //商铺名称
    private String store_name ;
    //技师图片
    private String beautician_pic ;
    //工作年限
    private String work_year ;
    // 排序ID
    private Integer orders;
    //身份证
    private String idcard_num ;
    //身份证照片
    private String idcard_pic ;
    //总共的评分
    private Integer count_num ;
    //订单数
    private Integer order_num ;
    //截取短文本
    private String basehelp;
    
    private int good_num;//好评总数
    
    private int bad_num; //差评总数
    
    private int avglevel;//平均数
    
    
    
   

	public int getAvglevel() {
	  	if(this.getCount_num()==null || this.getCount_num()==0){
    	    return 5;
    	}
		return     count_num/(good_num+bad_num);
	}

	public void setAvglevel(int avglevel) {
		this.avglevel = avglevel;
	}

	public int getGood_num() {
		return good_num;
	}

	public void setGood_num(int good_num) {
		this.good_num = good_num;
	}

	public int getBad_num() {
		return bad_num;
	}

	public void setBad_num(int bad_num) {
		this.bad_num = bad_num;
	}

	private String baojia;//技师报价
    
    
    public String getBaojia() {
		return baojia;
	}

	public void setBaojia(String baojia) {
		this.baojia = baojia;
	}
    public String getBasehelp() {
		return basehelp;
	}

	public void setBasehelp(String basehelp) {
		this.basehelp = basehelp;
	}

	/**
     *
     **/
    public Integer getBeautician_id() {
        return this.beautician_id;
    }

    /**
     * @param beautician_id 
     **/
    public Integer setBeautician_id(Integer beautician_id) {
        return this.beautician_id=beautician_id;
    }

    /**
     *
     **/
    public String getBeautician_level() {
        return this.beautician_level;
    }

    /**
     * @param beautician_level 
     **/
    public String setBeautician_level(String beautician_level) {
        return this.beautician_level=beautician_level;
    }

    /**
     *技师名字
     **/
    public String getBeautician_name() {
        return this.beautician_name;
    }

    /**
     * @param beautician_name 技师名字
     **/
    public String setBeautician_name(String beautician_name) {
        return this.beautician_name=beautician_name;
    }

    /**
     *技师介绍
     **/
    public String getBeautician_help() {
        return this.beautician_help;
    }

    /**
     * @param beautician_help 技师介绍
     **/
    public String setBeautician_help(String beautician_help) {
        return this.beautician_help=beautician_help;
    }

    /**
     *商铺ID
     **/
    public Integer getStore_id() {
        return this.store_id;
    }

    /**
     * @param store_id 商铺ID
     **/
    public Integer setStore_id(Integer store_id) {
        return this.store_id=store_id;
    }

    /**
     *商铺名称
     **/
    public String getStore_name() {
        return this.store_name;
    }

    /**
     * @param store_name 商铺名称
     **/
    public String setStore_name(String store_name) {
        return this.store_name=store_name;
    }

    /**
     *技师图片
     **/
    public String getBeautician_pic() {
        return this.beautician_pic;
    }

    /**
     * @param beautician_pic 技师图片
     **/
    public String setBeautician_pic(String beautician_pic) {
        return this.beautician_pic=beautician_pic;
    }

    /**
     *
     **/
    public String getWork_year() {
        return this.work_year;
    }

    /**
     * @param work_year 
     **/
    public String setWork_year(String work_year) {
        return this.work_year=work_year;
    }

    /**
     *
     **/
    public Integer getOrders() {
        return this.orders;
    }

    /**
     * @param orders 
     **/
    public Integer setOrders(Integer orders) {
        return this.orders=orders;
    }

    /**
     *
     **/
    public String getIdcard_num() {
        return this.idcard_num;
    }

    /**
     * @param idcard_num 
     **/
    public String setIdcard_num(String idcard_num) {
        return this.idcard_num=idcard_num;
    }

    /**
     *
     **/
    public String getIdcard_pic() {
        return this.idcard_pic;
    }

    /**
     * @param idcard_pic 
     **/
    public String setIdcard_pic(String idcard_pic) {
        return this.idcard_pic=idcard_pic;
    }

    /**
     *总共的评分
     **/
    public Integer getCount_num() {
        return this.count_num;
    }

    /**
     * @param count_num 总共的评分
     **/
    public Integer setCount_num(Integer count_num) {
        return this.count_num=count_num;
    }

    /**
     *订单数
     **/
    public Integer getOrder_num() {
        return this.order_num;
    }

    /**
     * @param order_num 订单数
     **/
    public Integer setOrder_num(Integer order_num) {
        return this.order_num=order_num;
    }

}